<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/templates/component-sample.xhtml">
	<ui:define name="sample">



		<p>RichFaces Suggestion Box component adds the autocomplete
		capability to the existing input component such as h:inputText or
		t:inputText. Use the attribute 'for', in order to pint to the necessary input component
		to add the autocomplete capabity to it.</p>
		<p>Working with Suggestion Box is similar to the h:dataTable
		component, but instead of the 'value' attribute it has a
		suggestionAction attribute that points to the method that returns the
		filtered collection. The 'fetch' attribute points to the data that
		is inserted into the input field if a particular row is selected
		or clicked from the suggested list.</p>

		<div class="sample-container">
			<ui:include src="/richfaces/suggestionBox/examples/custom.xhtml"/>
			<ui:include src="/templates/include/sourceview.xhtml">
				<ui:param name="sourcepath" value="/richfaces/suggestionBox/examples/custom.xhtml"/>
			</ui:include>			
		</div>

	</ui:define>

</ui:composition>
</html>
